Global account properties

GlobalAccount functions manage all open positions (with any magic number, opened by any EA or manually).

Be careful — other EAs can’t cooperate with CP EA correctly, so you have a small chance of new positions opening before all positions are closed by GlobalAccount signal (in case a new opening signal of another EA happens simultaneously with GA close signal). So, please, test your EAs on demo-accounts first.


GA StopLoss

(starting from v2.48)

Loss (in account currency / in % from account balance) of all opened positions (with all magic numbers, opened by any EA or manually) that should be closed as soon as it is reached.

Don't activate this option for several EAs, you need to activate it only once!

Set 0 to disable GA StopLoss.


GA TrailingStop

(starting from v2.34)

Equity Trailing Stop (in account currency / in % from account balance). Activates when profit of all opened positions (with all magic numbers, opened by any EA or manually) reaches some value. Follows new equity highs. Closes all opened positions when equity rolls back by the same value.

For example, if you start with $1000 and set GA TrailingStop (account currency) = 35, trailing is activated when equity becomes $1035. If equity continues to grow, trailing follows. Let’s say equity becomes $1095 and then go down. EA closes all positions when equity is $1060 (1095 - 35).

Don't activate this option for several EAs, you need to activate it only once!

Set 0 to disable GA TrailingStop.


GA TakeProfit

(starting from v2.31)

Profit (in account currency / in % from account balance) of all opened positions (with all magic numbers, opened by any EA or manually) that should be closed as soon as it is reached.

Don't activate this option for several EAs, you need to activate it only once!

Set 0 to disable GA TakeProfit.


GA TargetProfit

(starting from v2.31, improved in v2.34)

Target profit (in account currency / in % from the last equity high) for the entire account. EA will close all positions when the target level is reached. Then the target level will be moved by the TargetProfit size (to the next level).

Thus, EA will close positions every X dollars earned.

Restarts if all positions are closed (starting from v2.34).

For example, if you start with $1000 and set GA TargetProfit = 25, EA closes all positions as soon as equity becomes $1025, then at $1050, $1075, $1100, and so on. Equity will not be exactly rounded to the TargetProfit size because of price moves, slippages and execution speed. So, progression could be like 1000 - 1026 - 1050 - 1074 - 1110.

Don't activate this option for several EAs, you need to activate it only once!

Set 0 to disable GA TakeProfit.


Stop Till Tomorrow After Close

(starting from v2.45)

Set true to disable trading till the next day (server time) after any close by Global Account functions


Magic numbers list

(starting from v2.59)

List of magic numbers that EA should take into account for Global Account functions.

Leave empty to manage all magic numbers.


Magic numbers group name

(starting from v2.59)

Name of the group of magic numbers that EA should use to communicate with other EAs.

Set the same group name in all EAs that should manage the same group of magic numbers.